<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>员工信息</title>
</head>
<body>
<#--<#assign  username="张三"/>-->
<#--${username}-->
<#--<div id="m1">-->
<#--    ${Session["ename"]}-->
<#--</div>-->
<a href="/addck">新增员工</a>
<table border="1">
    <tr>
        <td>员工名</td>
        <td>职位</td>
        <td>工资</td>
        <td>操作</td>
    </tr>
    <#if emps ??&& (emps?size>0)>
        <#list emps as emp>
            <tr>
                <td>${emp.empno}</td>
                <td>${emp.ename}</td>
                <td>${emp.job}</td>
                <td>${emp.sal}</td>
                <td><a href="/del?ename='${emp.ename}'">删除|</a> <a href="/del?empno='${emp.empno}'">修改</a></td>

            </tr>
        </#list>
    </#if>
</table>

<#if message??>
    <script>
        if ("${message}") {
            alert("${message}");
        }
    </script>
</#if>
<#if delmsg??>
    <script>
        if ("${Session["delmsg"]}") {
            alert("${Session["delmsg"]}");
        }
    </script>
</#if>

<script>
    console.log("${Session["ename"]}")
    if ("${Session["ename"]}" != null) {
        alert("你好" + "${Session["ename"]}" + "登陆成功");
    }
</script>
</body>
</html>